package com.api.interf;
import com.api.util.ExcelUtil;
import com.api.util.RestUtil;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class RegisterCase1 {
        @Test(dataProvider = "datas")
        public void test(String url,String type,String params){
            //完成接口调用
            RestUtil.process(url,type,params);
        }

        //准备接口地址


        @DataProvider(name = "datas")
        public Object [][] datas(){
            String[] cellNames={"Url(接口地址)","Type(接口提交类型)","Params(参数)"};
            Object [][] datas = ExcelUtil.read("src/test/resources/cases_v2.xls","用例",cellNames);
            return datas;
        }
}



